(function(window) {
  var tk = '44964a97c8c44e4d04efdf3cba594467'; // 天地图token
  tk = 'dfca77829c02c1c39d66b1b63c9a672f';
  tk = 'ebe28b5d03f375ee3abafa7af9364270'; // 用户token
  var basemapConfig = [
    {
      title: '天地图矢量',
      iconUrl: './images/basemap/tdtsl.png',
      id: 'basemap-01',
      active: true,
      baseLayers: [
        {
          title: '天地图矢量图层',
          type: 'WebTileLayer',
          url: 'https://t0.tianditu.gov.cn/DataServer?T=vec_w&x={col}&y={row}&l={level}&tk=' + tk,
        },
        {
          title: '天地图注记图层',
          type: 'WebTileLayer',
          url: 'https://t0.tianditu.gov.cn/DataServer?T=cva_w&x={col}&y={row}&l={level}&tk=' + tk,
        },
      ],
    },
    {
      title: '天地图影像',
      iconUrl: './images/basemap/tdtyy.png',
      id: 'basemap-02',
      avtive: false,
      baseLayers: [
        {
          title: '天地图影像图层',
          type: 'TileLayer',
          // type: 'WebTileLayer',
          url: 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
          // url: 'https://t0.tianditu.gov.cn/DataServer?T=img_w&x={col}&y={row}&l={level}&tk=' + tk,
        },
        {
          title: '天地图影像图层',
          type: 'WebTileLayer',
          url: 'https://t0.tianditu.gov.cn/DataServer?T=cia_w&x={col}&y={row}&l={level}&tk=' + tk,
        },
      ],
    },
    {
      title: '午夜蓝',
      iconUrl: './images/basemap/bmap.png',
      id: 'basemap-03',
      baseLayers: [
        {
          title: '午夜蓝',
          type: 'TileLayer',

          url: 'http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer',
        },
      ],
    },
    {
      title: '矢量切片底图',
      iconUrl: './images/basemap/bmap.png',
      id: 'basemap-04',
      baseLayers: [
        {
          title: '矢量切片底图',
          type: 'TileLayer',
          // type: 'VectorTileLayer',
          url:
            'https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer',
          // url:
          //   'https://www.arcgis.com/sharing/rest/content/items/75f4dfdff19e445395653121a95a85db/resources/styles/root.json?f=json',
        },
      ],
    },
  ];
  window.basemapConfig = basemapConfig;
})(window);
